﻿using System;
namespace VegetableSale.NET.Entities.Good;

public class sGoodPage
{
    //"total":17,"size":5,"current":1,"orders":[],"optimizeCountSql":true,"hitCount":false,"countId":null,"maxLimit":null,"searchCount":true,"pages":4}}
    private List<Gooden> records;
    private uint total;
    private uint size;
    private uint current;
    private List<Object> orders;
    private bool optimizeCountSql;
    private bool hitCount;
    private string countId = null;
    private string maxLimit = null;
    private bool searchCount = true;
    private int pages;

    public sGoodPage()
    {
    }

    public sGoodPage(List<Gooden> records, uint total, uint size, uint current, List<object> orders, bool optimizeCountSql, bool hitCount, string countId, string maxLimit, bool searchCount,int pages)
    {
        this.records = records;
        this.total = total;
        this.size = size;
        this.current = current;
        this.orders = orders;
        this.optimizeCountSql = optimizeCountSql;
        this.hitCount = hitCount;
        this.countId = countId;
        this.maxLimit = maxLimit;
        this.searchCount = searchCount;
        this.pages = pages;
    }

    public List<Gooden> Records { get => records; set => records = value; }
    public uint Total { get => total; set => total = value; }
    public uint Size { get => size; set => size = value; }
    public uint Current { get => current; set => current = value; }
    public List<object> Orders { get => orders; set => orders = value; }
    public bool OptimizeCountSql { get => optimizeCountSql; set => optimizeCountSql = value; }
    public bool HitCount { get => hitCount; set => hitCount = value; }
    public string CountId { get => countId; set => countId = value; }
    public string MaxLimit { get => maxLimit; set => maxLimit = value; }
    public int Pages { get => pages; set => pages = value; }
    public bool SearchCount { get => searchCount; set => searchCount = value; }
}

